:root {
        --primary-color: #77dd77;
        --secondary-color: #a8e6cf;
        --accent-color: #dcedc1;
        --light-color: #e8f5e9;
        --success-color: #4caf50;
        --error-color: #f44336;
        --text-color: #2e7d32;
        --white: #ffffff;
        --dark-green: #388e3c;
      }

      /* Estilos del Header mejorado */
      .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: linear-gradient(
          135deg,
          var(--primary-color),
          var(--secondary-color)
        );
        padding: 0 10%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        z-index: 1000;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-bottom: 2px solid #fff;
        transition: all 0.3s ease;
      }

      .header:hover {
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
      }

      .logo {
        font-size: 28px;
        font-family: "Montserrat", sans-serif;
        font-weight: 700;
        color: var(--white);
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
        letter-spacing: 1px;
      }

      .navigation ul {
        list-style: none;
        margin: 0;
        padding: 0;
      }

      .header .navigation ul li {
        float: left;
        position: relative;
      }

      .header .navigation ul li a {
        font-family: "Poppins", sans-serif;
        font-size: 16px;
        font-weight: 500;
        color: var(--white);
        text-decoration: none;
        padding: 22px 20px;
        display: block;
        transition: all 0.3s ease;
      }

      .header .navigation ul li a:hover {
        background-color: rgba(255, 255, 255, 0.733);
        color: var(--dark-green);
        transform: translateY(-2px);
      }

      .header .navigation ul li ul {
        position: absolute;
        right: 0;
        width: 220px;
        background: rgba(255, 255, 255, 0.589);
        border-radius: 0 0 8px 8px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        display: none;
        overflow: hidden;
      }

      .header .navigation ul li ul li a {
        color: var(--text-color);
        padding: 12px 20px;
        font-size: 14px;
      }

      .header .navigation ul li ul li a:hover {
        background-color: var(--light-color);
        color: var(--dark-green);
      }

      .header .navigation ul li:hover > ul {
        display: initial;
        animation: fadeIn 0.3s ease-out;
      }

      #toggle,
      .header label {
        display: none;
        cursor: pointer;
      }

      .menu {
        width: 28px;
        height: 28px;
        filter: brightness(0) invert(1);
      }

      @media (max-width: 950px) {
        .header label {
          display: initial;
        }

        .header {
          padding: 15px 10%;
        }

        .header .navigation {
          position: absolute;
          top: 100%;
          left: 0;
          right: 0;
          background: var(--primary-color);
          display: none;
          border-radius: 0 0 12px 12px;
        }

        .header .navigation ul li {
          width: 100%;
        }

        .header .navigation ul li a {
          padding: 12px 20px;
          font-size: 18px;
        }

        .header .navigation ul li ul {
          position: relative;
          width: 100%;
          left: 0;
          background: rgba(255, 255, 255, 0.1);
        }

        .header .navigation ul li ul li a {
          padding-left: 30px;
          font-size: 16px;
        }

        #toggle:checked ~ .navigation {
          display: block;
          animation: slideDown 0.4s ease-out;
        }
      }

      /* Estilos del cuerpo y fondo */
      body {
        font-family: "Poppins", sans-serif;
        background: linear-gradient(135deg, #e8f5e9, #dcedc1, #a8e6cf);
        margin: 0;
        padding: 0;
        padding-top: 80px;
        min-height: 100vh;
        color: var(--text-color);
        background-size: 400% 400%;
        animation: gradientBG 15s ease infinite;
      }

      /* Animación de fondo */
      @keyframes gradientBG {
        0% {
          background-position: 0% 50%;
        }
        50% {
          background-position: 100% 50%;
        }
        100% {
          background-position: 0% 50%;
        }
      }

      /* Animaciones */
      @keyframes fadeIn {
        from {
          opacity: 0;
          transform: translateY(-10px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      @keyframes slideDown {
        from {
          opacity: 0;
          transform: translateY(-20px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      /* Contenedor principal */
      .game-container {
        max-width: 1000px;
        margin: 30px auto;
        padding: 30px;
        background-color: rgba(255, 255, 255, 0.95);
        border-radius: 12px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
      }

      .game-container h1 {
        text-align: center;
        color: var(--dark-green);
        margin-bottom: 30px;
        font-family: "Montserrat", sans-serif;
      }

      /* Pestañas del juego */
      .tabs {
        display: flex;
        margin-bottom: 20px;
        border-bottom: 2px solid var(--light-color);
        flex-wrap: wrap;
      }

      .tab {
        padding: 12px 20px;
        cursor: pointer;
        background-color: var(--light-color);
        margin-right: 5px;
        border-radius: 5px 5px 0 0;
        transition: all 0.3s ease;
        font-weight: 500;
        color: var(--text-color);
      }

      .tab.active {
        background-color: var(--primary-color);
        color: white;
      }

      .tab:hover:not(.active) {
        background-color: rgba(220, 237, 193, 0.7);
      }

      /* Contenido de las actividades */
      .activity {
        display: none;
        animation: fadeIn 0.5s ease-out;
      }

      .activity.active {
        display: block;
      }

      .activity-title {
        color: var(--dark-green);
        margin-bottom: 20px;
        font-size: 22px;
        text-align: center;
      }

      /* Sección de información */
      .seccion-informacion {
        background-color: var(--light-color);
        border-radius: 12px;
        padding: 25px;
        margin-bottom: 30px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      }

      .seccion-informacion h2 {
        color: var(--dark-green);
        margin-top: 0;
        border-bottom: 2px solid var(--primary-color);
        padding-bottom: 10px;
      }

      .ejemplos {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        margin-top: 20px;
      }

      @media (max-width: 768px) {
        .ejemplos {
          grid-template-columns: 1fr;
        }
      }

      .ejemplo-card {
        background-color: var(--white);
        border-radius: 8px;
        padding: 15px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
        border: 1px solid var(--accent-color);
      }

      .ejemplo-card h3 {
        color: var(--dark-green);
        margin-top: 0;
      }

      /* Actividades */
      .seccion-actividad {
        margin-bottom: 30px;
      }

      .actividad-card {
        background-color: var(--light-color);
        border-radius: 12px;
        padding: 20px;
        margin-bottom: 20px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        border: 1px solid var(--accent-color);
      }

      .actividad-card h3 {
        color: var(--dark-green);
        margin-top: 0;
      }

      .pregunta {
        margin-bottom: 20px;
        padding: 15px;
        background-color: var(--white);
        border-radius: 8px;
        border-left: 4px solid var(--secondary-color);
      }

      .instrucciones {
        text-align: center;
        margin-bottom: 30px;
        font-size: 18px;
        color: var(--dark-green);
        font-weight: 600;
      }

      .opciones {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 10px;
      }

      .opcion {
        background-color: var(--secondary-color);
        border-radius: 6px;
        padding: 8px 15px;
        cursor: pointer;
        transition: all 0.3s ease;
        color: var(--text-color);
      }

      .opcion:hover {
        background-color: var(--primary-color);
      }

      .opcion.seleccionada {
        background-color: var(--primary-color);
        box-shadow: 0 0 0 2px var(--dark-green);
      }

      .opcion.correcta {
        background-color: #c8e6c9;
        color: #1b5e20;
      }

      .opcion.incorrecta {
        background-color: #ffcdd2;
        color: #c62828;
      }

      /* Inputs de texto */
      .input-texto {
        padding: 10px 14px;
        border: 2px solid var(--secondary-color);
        border-radius: 6px;
        font-size: 16px;
        width: 200px;
        margin: 0 5px;
        color: var(--text-color);
      }

      .input-texto:focus {
        border-color: var(--primary-color);
        outline: none;
        box-shadow: 0 0 0 2px rgba(119, 221, 119, 0.3);
      }

      .input-texto.correcto {
        border-color: var(--success-color);
        background-color: #e8f5e9;
      }

      .input-texto.incorrecto {
        border-color: var(--error-color);
        background-color: #ffebee;
      }

      /* Botones */
      .button-group {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin-top: 30px;
      }

      .btn {
        padding: 12px 24px;
        border: none;
        border-radius: 6px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
      }

      .btn-check {
        background-color: var(--success-color);
        color: white;
      }

      .btn-check:hover {
        background-color: #388e3c;
        transform: translateY(-2px);
      }

      .btn-reset {
        background-color: var(--error-color);
        color: white;
      }

      .btn-reset:hover {
        background-color: #d32f2f;
        transform: translateY(-2px);
      }

      /* Resultados */
      .results {
        text-align: center;
        margin-top: 30px;
        padding: 20px;
        background-color: rgba(76, 175, 80, 0.1);
        border-radius: 8px;
        display: none;
        border: 1px solid var(--accent-color);
      }

      .results.show {
        display: block;
        animation: fadeIn 0.5s ease-out;
      }

      .results h3 {
        color: var(--success-color);
        margin-bottom: 10px;
      }

      /* Modal de felicitaciones */
      .modal-felicidades {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        display: none;
        justify-content: center;
        align-items: center;
        z-index: 2000;
      }

      .modal-felicidades.mostrar {
        display: flex;
        animation: fadeIn 0.3s ease-out;
      }

      .modal-contenido {
        background-color: white;
        border-radius: 12px;
        padding: 30px;
        max-width: 500px;
        width: 90%;
        text-align: center;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
        position: relative;
        border: 3px solid var(--primary-color);
      }

      .cerrar-modal {
        position: absolute;
        top: 15px;
        right: 15px;
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: var(--text-color);
      }

      .mensaje-felicidades {
        font-size: clamp(20px, 5vw, 24px);
        font-weight: 600;
        color: var(--dark-green);
        margin-bottom: 15px;
      }

      .confetti {
        position: absolute;
        width: 10px;
        height: 10px;
        background-color: var(--primary-color);
        opacity: 0;
      }

      /* MEJORAS ESPECÍFICAS PARA MÓVIL */
      @media (max-width: 768px) {
        body {
          padding-top: 70px;
        }

        .tabs {
          flex-direction: column;
        }

        .tab {
          margin-bottom: 5px;
          text-align: center;
        }

        .input-texto {
          width: 150px;
        }
      }

      @media (max-width: 480px) {
        .game-container {
          padding: 20px;
        }

        .button-group {
          flex-direction: column;
        }

        .btn {
          width: 100%;
        }

        .input-texto {
          width: 120px;
          font-size: 14px;
          padding: 8px 10px;
        }
      }

      /* Estilos para la actividad de completar */
      .oracion-completa {
        font-size: 18px;
        margin: 15px 0;
        line-height: 1.6;
      }

      .verbo-faltante {
        display: inline-block;
        min-width: 100px;
      }

      .sentence-number {
        font-weight: bold;
        color: var(--dark-green);
        margin-right: 10px;
      }

      .feedback {
        margin-top: 10px;
        padding: 8px 12px;
        border-radius: 5px;
        font-size: 14px;
        display: none;
      }

      .feedback.correct {
        background-color: #e8f5e9;
        color: #1b5e20;
        border-left: 4px solid var(--success-color);
      }

      .feedback.incorrect {
        background-color: #ffebee;
        color: #c62828;
        border-left: 4px solid var(--error-color);
      }